package com.xzzz.irda.guardcat.core.metric.tomcat;

/**
 * Tomcat 服务器信息
 *
 * @author xzzz
 * @since 1.0.0
 */
public class TomcatServerInfo {

    /**
     * Tomcat 服务器版本标识符
     */
    private String serverInfo;

    /**
     * Tomcat 服务器的版本号
     */
    private String serverNumber;

    /**
     * 该组件当前所在的 LifecycleState 的名称
     */
    private String stateName;

    /**
     * 等待关机命令的地址
     */
    private String address;

    /**
     * 关闭消息的 TCP 端口（不包括任何偏移量）
     */
    private Integer port;


    public String getServerInfo() {
        return serverInfo;
    }

    public void setServerInfo(String serverInfo) {
        this.serverInfo = serverInfo;
    }

    public String getServerNumber() {
        return serverNumber;
    }

    public void setServerNumber(String serverNumber) {
        this.serverNumber = serverNumber;
    }

    public String getStateName() {
        return stateName;
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    @Override
    public String toString() {
        return "TomcatServerInfo{" +
                "serverInfo='" + serverInfo + '\'' +
                ", serverNumber='" + serverNumber + '\'' +
                ", stateName='" + stateName + '\'' +
                ", address='" + address + '\'' +
                ", port=" + port +
                '}';
    }
}
